home *** CD-ROM | disk | FTP | other *** search
- Short: Example for measuring WOS context-switch
- Author: racs@fs2.bdtf.hu (Almos Rajnai)
- Uploader: racs@fs2.bdtf.hu (Almos Rajnai)
- Type: dev/c
- Requires: VBCC, WarpOS, PowerPC card
-
- ---------------------------------------------------------------------
-
- This is an example for measuring the ellapsed time at the context-switch of
- WarpOS. Both sources and executable included in this archive.
- Please do not take too serious this code, may contains lot of bugs, I can
- create mistakes even in a simple printf...
-
- Using:
- ------
- Simply start measurecontextwos executable, then enter the number of the
- context-switch cycles. The measuring may take a long time (several minutes),
- but I see no reason of trying more than 10000 cycles. (It took about 7.5 sec
- on my BPPC603e-175/040-25.) After starting the process can not be stopped
- until it finished. (Because of more precise calculations.)
-
- Rebuild:
- --------
- You will need VBCC package for PowerPC, if you want to rebuild the project.
- Makefile is included for AmigaE's build, it should work with other make-tools
- too.
-
- Disclaimer:
- -----------
- This example is provided "as-is", no warranties are made.
- All use is at your own risk. No liability or responsibility is assumed.
-
- The source and executable code of these examples may only be distributed in
- free electronic form, via bulletin board or as part of a fully non-commercial
- and freely redistributable diskette. Both the source and executable code
- (including comments) must be included, without modification, in any copy.
-
- Author:
- -------
- Álmos Rajnai
- (Rachy of BiøHazard)
- racs@fs2.bdtf.hu
-
- Comments are welcome!
-
-
- ============================= Archive contents =============================
-
- Original Packed Ratio Date Time Name
- -------- ------- ----- --------- -------- -------------
- 11836 6552 44.6% 21-Nov-99 23:33:16 +measurecontextwos
- 1632 859 47.3% 21-Nov-99 23:29:48 +measureconwos.readme
- 613 302 50.7% 21-Nov-99 23:28:00 +.build
- 2613 1119 57.1% 21-Nov-99 23:28:18 +measurecontextwos.c
- 508 347 31.6% 21-Nov-99 23:28:14 +measurecontextwos68k.asm
- 328 230 29.8% 21-Nov-99 23:28:12 +measurecontextwosppc.pasm
- -------- ------- ----- --------- --------
- 17530 9409 46.3% 22-Nov-99 22:34:06 6 files
-